
/**
 * 记住我，免登陆
 * Project Name:cats-core
 * File Name:RememberMe.java
 * Package Name:com.catsic.core.entity
 * Date:2014年2月26日下午3:28:19
 * Copyright (c) 2014, oa.catsic.com All Rights Reserved.
 */
 
package com.catsic.core.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * ClassName: RememberMe
 * Description: RememberMe实体类
 * date: 2014年2月26日 下午3:28:19
 * author: yangyd
 */
@Entity
@Table(name="persistent_logins")
public class RememberMe{
	
	
	/**
	 * username: 登录昵称
	 */
	@Column(name="USERNAME",nullable=false,length=64)
	private String username;
	
	/**
	 * series:序列码
	 */
	@Id
	@Column(name="SERIES",nullable=false,length=64)
	private String series;
	
	/**
	 * 令牌
	 */
	@Column(name="TOKEN",nullable=false,length=64)
	private String token;
	
	/**
	 * 登录日期
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="LAST_USED",nullable=false)
	private Date last_used;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getSeries() {
		return series;
	}

	public void setSeries(String series) {
		this.series = series;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getLast_used() {
		return last_used;
	}

	public void setLast_used(Date last_used) {
		this.last_used = last_used;
	}
}
